/**
* desc：Observe组件样式表
* author：王文军
* date：2021/5/28 9:04
*/
.observe{
  height: 100vh;
  width: 100vw;
  background-color: dodgerblue;
  .header{
    background-color: red;
    height: 60px;
    &.green{
      background-color: green;
    }
  }
  .viewport{
    position: absolute;
    top: 200px;
    height: 100px;
    width: calc(100% - 4px);
    border: 2px solid  orange;
    overflow-y: scroll;
    .scroll{
      .box{
        height: 100px;
        width: 100px;
        background-color: firebrick;
        margin-bottom: 10px;
      }
      .child{
        height: 100px;
        width: 100px;
        background-color: green;
      }
    }
  }
}
